package test1224;

public class Test09 {
    public static void main(String[] args) {
        // 数组中最大的偶数
        int[] arr = {6, 1, 7, 4, 3};
        int a = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] % 2 == 0) {
                if ( arr[i] > a) {
                    a = arr[i];
                }

            }
        }
        System.out.println(a);
    }
}
